package com.example.shardingSphere.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.shardingSphere.base.BaseEntity;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 订单实体类
 *
 * @time 2019年6月10日
 */
@Data
@ToString(callSuper = true)
@Accessors(chain = true)
@AllArgsConstructor(access = AccessLevel.PROTECTED)
@NoArgsConstructor
@TableName(Order.TABLE_NAME)
@EqualsAndHashCode(callSuper = false)
public class Order extends BaseEntity<Order> implements Serializable {

    public static final String TABLE_NAME = "business_order"; // 表名

    private static final long serialVersionUID = 8600549941188317014L;


    /**
     * varchar(32) NULL订单号
     */
    @TableField(value = "orderNo")
    private String orderNo;
    /**
     * varchar(240) NULL订单详情
     */
    @TableField(value = "orderDetail")
    private String orderDetail;
    /**
     * char(1) NULL逻辑删除 Y:删除 N:未删除
     */
    @TableField(value = "logicDel")
    private String logicDel;
    /**
     * varchar(240) NULL备注
     */
    @TableField(value = "remark")
    private String remark;

//    private Integer orderStatus;

}
